package com.summer.test.controller;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.summer.core.annotations.ScopeType;
import com.summer.core.controller.EntityQuery;
import com.summer.test.model.OneBean;

@Component
@Scope(ScopeType.VIEW)
public class OneBeanList extends EntityQuery<OneBean> {

	private final String hql = "from OneBean oneBean";
	private final String countHql = "select count(oneBean) from OneBean oneBean";
	
	public OneBeanList() {
		
		setHql(hql);
		setCountHql(countHql);
	}
}
